﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XingFuStudio.Pioneer.Applications.City.Shop {
    /// <summary>
    /// 农业商品
    /// </summary>
    public class FarmShopInfo : ShopItem{
        /// <summary>
        /// 生长时间（以分钟为单位）
        /// </summary>
        public int GrowTimes {
            get;
            set;
        }

        /// <summary>
        /// 收获的货物数量
        /// </summary>
        public int Goods {
            get;
            set;
        }

        /// <summary>
        /// 初始化商品自身数据
        /// </summary>
        /// <param name="shopItems"></param>
        public override void InitShop(Dictionary<string, object> shopItems) {
            base.InitShop(shopItems);

            this.Price = Convert.ToInt32((string)shopItems["price"]);
            this.GrowTimes = Convert.ToInt32((string)shopItems["growtime"]);
            this.Goods = Convert.ToInt32((string)shopItems["goodsnum"]);
        }
    }
}
